//---------------------------------------------------------------------
// <copyright file="CsdlValueTerm.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

namespace Microsoft.Data.Edm.Csdl.Internal.Parsing.Ast
{
    /// <summary>
    /// Represents a CSDL value term.
    /// </summary>
    internal class CsdlValueTerm : CsdlNamedElement
    {
        private readonly CsdlTypeReference type;

        public CsdlValueTerm(string name, CsdlTypeReference type, CsdlDocumentation documentation, CsdlLocation location)
            : base(name, documentation, location)
        {
            this.type = type;
        }

        public CsdlTypeReference Type
        {
            get { return this.type; }
        }
    }
}
